import requests
# query = input("输入一个名字")
# url = f'https://www.sogou.com/web?query={query}'
# dic = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
# }
# resp = requests.get(url, headers=dic)
# print(resp)
# print(resp.text)
# print("over")
# url = 'http://localhost:3000/video/group?id=58100'
# url = 'http://localhost:3000/video/timeline/all'
url = 'http://localhost:3000/recommend/songs'
header = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36",
    "cookie": "MUSIC_U=b85c4f94712392f3b1d9914cd14db50a53b0b4cedfa830428eee3d524eae4836519e07624a9f0053d78b6050a17a35e705925a4e6992f61d07c385928f88e8de; Max-Age=1296000; Expires=Thu 23 Dec 2021 11:46:01 GMT; Path=/;"
}
resp = requests.get(url, headers=header)
print(resp.json())